<body>
<?php include 'header.phtml';?>


	<div class="AppContainer clearfix GridView">
	<div id="AccountEditAndDetailsView" class="AppContent SecuredEditAndDetailsView EditAndDetailsView DetailsView ModelView ConfigurableMetadataView MetadataView">
	<div class="wrapper">
	<h1><span class="truncated-title"><span class="ellipsis-content">Create Account</span></span></h1>
	<div class="wide form">
	<form onSubmit="js:return $(this).attachLoadingOnSubmit(&quot;edit-form&quot;)" id="edit-form" action="/zurmobaru/public/account/create/createuser" method="post">
	<div style="display:none">
	<input type="hidden" value="d95bda53da3650780c9ccf3a9c745c6f900701af" name="YII_CSRF_TOKEN" />
					</div>
					<div class="attributesContainer"><div class="left-column">
						<div class="panel">
							<table class="form-fields">
								<colgroup><col class="col-0" /><col class="col-1" /></colgroup>
								<tbody>
									<tr>
										<th>
											<label for="Account_name" class="required">Name <span class="required">*</span></label>
										</th>
										<td colspan="1"><input id="Account_name" name="Account_name" type="text" maxlength="64" /></td>
									</tr>
									<tr>
										<th>
											<label for="Account_officePhone">Office Phone</label>
										</th>
										<td colspan="1">
											<input id="Account_officePhone" name="Account_officePhone" type="text" maxlength="24" />
										</td>
									</tr>
									<tr>
										<th>
											<label for="Account_industry_value">Industry</label>
										</th>
										<td colspan="1">
											<div class="hasDropDown">
												<span class="select-arrow"></span>
												<select name="Account_industry_value" id="Account_industry_value">
													<option value="">(None)</option>
													<option value="Automotive">Automotive</option>
													<option value="Banking">Banking</option>
													<option value="Business Services">Business Services</option>
													<option value="Energy">Energy</option>
													<option value="Financial Services">Financial Services</option>
													<option value="Insurance">Insurance</option>
													<option value="Manufacturing">Manufacturing</option>
													<option value="Retail">Retail</option>
													<option value="Technology">Technology</option>
												</select>
											</div>
										</td>
									</tr>
									<tr>
										<th>
											<label for="Account_officeFax">Office Fax</label>
										</th>
										<td colspan="1">
											<input id="Account_officeFax" name="Account_officeFax" type="text" maxlength="24" />
										</td>
									</tr>
									<tr>
										<th>
											<label for="Account_employees">Employees</label>
										</th>
										<td colspan="1">
											<input id="Account_employees" name="Account_employees" type="text" />
										</td>
									</tr>
									<tr>
										<th>
											<label for="Account_annualRevenue">Annual Revenue</label>
										</th>
										<td colspan="1">
											<input id="Account_annualRevenue" name="Account_annualRevenue" type="text" />
										</td>
									</tr>
									<tr>
										<th>
											<label for="Account_type_value">Type</label>
										</th>
										<td colspan="1">
											<div class="hasDropDown">
												<span class="select-arrow"></span>
												<select name="Account_type_value" id="Account_type_value">
													<option value="">(None)</option>
													<option value="Prospect">Prospect</option>
													<option value="Customer">Customer</option>
													<option value="Vendor">Vendor</option>
												</select>
											</div>
										</td>
									</tr>
									<tr>
										<th>
											<label for="Account_website">Website</label>
										</th>
										<td colspan="1">
											<input id="Account_website" name="Account_website" type="text" />
										</td>
									</tr>
									<tr>
										<th>
											<label>Billing Address</label>
										</th>
										<td colspan="1">
											<div class="address-fields"><div class="overlay-label-field">
												<label for="Account_billingAddress_street1">Street 1</label>
												<input name="Account_billingAddress_street1" id="Account_billingAddress_street1" type="text" maxlength="128" />
											</div>
											<div class="overlay-label-field">
												<label for="Account_billingAddress_street2">Street 2</label>
												<input name="Account_billingAddress_street2" id="Account_billingAddress_street2" type="text" maxlength="128" />
											</div>
											<div class="overlay-label-field">
												<label for="Account_billingAddress_city">City</label>
												<input name="Account_billingAddress_city" id="Account_billingAddress_city" type="text" maxlength="32" />
											</div>
											<div class="hasHalfs">
												<div class="overlay-label-field half">
													<label for="Account_billingAddress_state">State</label>
													<input name="Account_billingAddress_state" id="Account_billingAddress_state" type="text" maxlength="32" />
												</div>
												<div class="overlay-label-field half">
													<label for="Account_billingAddress_postalCode">Postal Code</label>
													<input name="Account_billingAddress_postalCode" id="Account_billingAddress_postalCode" type="text" maxlength="16" />
												</div>
											</div>
											<div class="overlay-label-field">
												<label for="Account_billingAddress_country">Country</label>
												<input name="Account_billingAddress_country" id="Account_billingAddress_country" type="text" maxlength="32" />
											</div>
											</div>
										</td>
									</tr>
									<tr>
										<th>
											<label>Shipping Address</label>
										</th>
										<td colspan="1">
											<div class="address-fields">
												<div class="overlay-label-field">
													<label for="Account_shippingAddress_street1">Street 1</label>
													<input name="Account_shippingAddress_street1" id="Account_shippingAddress_street1" type="text" maxlength="128" />
												</div>
												<div class="overlay-label-field">
													<label for="Account_shippingAddress_street2">Street 2</label>
													<input name="Account_shippingAddress_street2" id="Account_shippingAddress_street2" type="text" maxlength="128" />
												</div>
												<div class="overlay-label-field">
													<label for="Account_shippingAddress_city">City</label>
													<input name="Account_shippingAddress_city" id="Account_shippingAddress_city" type="text" maxlength="32" />
												</div>
												<div class="hasHalfs"><div class="overlay-label-field half">
													<label for="Account_shippingAddress_state">State</label>
													<input name="Account_shippingAddress_state" id="Account_shippingAddress_state" type="text" maxlength="32" />
												</div>
												<div class="overlay-label-field half">
													<label for="Account_shippingAddress_postalCode">Postal Code</label>
													<input name="Account_shippingAddress_postalCode" id="Account_shippingAddress_postalCode" type="text" maxlength="16" />
												</div>
												</div>
												<div class="overlay-label-field">
													<label for="Account_shippingAddress_country">Country</label>
													<input name="Account_shippingAddress_country" id="Account_shippingAddress_country" type="text" maxlength="32" />
												</div>
											</div>
										</td>
									</tr>
									<tr>
										<th>
											<label for="Account_description">Description</label>
										</th>
										<td colspan="1">
											<textarea id="Account_description" name="Account_description" rows="6" cols="50"></textarea>
										</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
					<div class="right-column">
						<div class="right-side-edit-view-panel">
							<h3>Rights and Permissions</h3>
							<div id="owner-box">
								<label for="Account_owner_id" class="required">Owner <span class="required">*</span></label>
								<input name="Account_owner_id" id="Account_owner_id" value="1" type="hidden" />
								<div class="has-model-select">
									<input onblur="clearIdFromAutoCompleteField($(this).val(), &#039;Account_owner_id&#039;);" id="Account_owner_name" type="text" value="Super User" name="Account_owner_name" />
									<a id="Account_owner_SelectLink" href="#"><span class="model-select-icon"></span><span class="z-spinner"></span></a>
								</div>
							</div>
							<label>Who can read and write</label>
							<div class="radio-input">
								<input id="Account_explicitReadWriteModelPermissions_type_0" value="" type="radio" name="Account[explicitReadWriteModelPermissions][type]" />
								<label for="Account_explicitReadWriteModelPermissions_type_0">Owner</label>
							</div>
							<div class="radio-input">
								<input id="Account_explicitReadWriteModelPermissions_type_1" value="1" checked="checked" type="radio" name="Account_explicitReadWriteModelPermissions_type_1" />
								<label for="Account_explicitReadWriteModelPermissions_type_1">Everyone</label>
							</div>
						</div>
					</div>
					</div>
					<div class="float-bar">
						<div class="view-toolbar-container clearfix dock">
							<div class="form-toolbar">
								<a id="saveyt2" name="save" class="attachLoading z-button" onclick="jQuery.yii.submitForm(this, &#039;&#039;, {&#039;save&#039;:&#039;save&#039;}); return false;" href="#">
									<span class="z-spinner"></span><span class="z-icon"></span>
									<span class="z-label">Save</span>
								</a>
								<a id="CancelLinkActionElement--25-yt3" href="/zurmobajakan/module/Account/view/account/account/index.phtml">
									<span class="z-label">Cancel</span>
								</a>
							</div>
						</div>
					</div>
					</form>
					<div id="modalContainer-edit-form"></div>
				</div>
			</div>
		</div>
		<div id="FlashMessageView">
			<div id = "FlashMessageBar"></div>
		</div>
	</div>
	<div id="ModalContainerView">
		<div id="modalContainer"></div>
	</div>
	<div id="ModalGameNotificationContainerView"></div>
	<div id="GameCoinContainerView"></div>
	<div id="FooterView">
		<a href="http://www.zurmo.com" id="credit-link" class="clearfix"><span>Copyright &#169; Zurmo Inc., 2013. All rights reserved.</span></a>
		<div class="ui-chooser">
			<a class="icon-mobile" href="/zurmo/app/index.php/zurmo/default/userInterface?userInterface=Mobile">
				<span>Show Mobile</span>
			</a>
			<a class="icon-desktop active" href="/zurmo/app/index.php/zurmo/default/userInterface?userInterface=Desktop">
				<span>Show Full</span>
			</a>
		</div>
	</div>
</div></div></div><script type="text/javascript">
/*<![CDATA[*/
function closeGamificationDashboard(){
                           $('#UserGameDashboardView').remove();
                           $('body').removeClass('gd-dashboard-active');
                           $('#header-game-dashboard-link').html('∂').toggleClass('highlighted');
                       }

                function clearIdFromAutoCompleteField(value, id)
                {
                    if (value == '')
                    {
                        $('#' + id).val('');
                    }
                }
            
jQuery(function($) {

                    jQuery("body").ajaxComplete(
                        function(event, request, options)
                        {
                            if (request.responseText == "sessionTimeout")
                            {
                                $.cookie("sessionTimeoutCookie", 1,
                                        {
                                            expires : 1,
                                            path:  "/"
                                        });
                                window.location.reload(true);
                            }
                        }
                    );
                
$('#go-to-dashboard-link, #close-game-notification-link').click(function(event){
                           event.preventDefault();
                           $('#game-notification').fadeOut(300, function(){
                               $('#game-notification').remove();
                           });
                       });
                       $('.gd-dashboard-active').on('click', function(){
                           if($('#UserGameDashboardView').length){
                               closeGamificationDashboard();
                           }
                           return false;
                       });
$('body').on('click', '#header-game-dashboard-link', function(){jQuery.ajax({'beforeSend':function(){
                    if($("#UserGameDashboardView").length){
                        closeGamificationDashboard();
                        return false;
                    }
                    $("body").addClass("gd-dashboard-active");
                    $("#header-game-dashboard-link").html("‰").toggleClass("highlighted");
                },'success':function(data){$("#FooterView").after(data);},'url':'/zurmo/app/index.php/users/default/gameDashboard?id=1','cache':false});return false;});
  $(".nav li").hover(
    function () {
      if ($(this).hasClass("parent")) {
        $(this).addClass("over");
      }
    },
    function () {
      $(this).removeClass("over");
    }
  );

$("#globalSearchScope").bind("multiselectclick", function(event, ui){
                            if ($("#globalSearchScope").multiselect("widget").find(":checkbox:checked").length == 0)
                            {
                                $("#globalSearchScope").multiselect("widget").find(":checkbox").each(function(){
                                    if (this.value == "All" && !this.checked)
                                    {
                                        this.click();
                                    }
                                });
                            }
                            if (ui.value == "All" && ui.checked)
                            {
                                $("#globalSearchScope").multiselect("widget").find(":checkbox").each(function(){
                                    if (this.value != "All" && this.checked)
                                    {
                                        this.click();
                                    }
                                });
                            }
                            else if (ui.value != "All" && ui.checked)
                            {
                                $("#globalSearchScope").multiselect("widget").find(":checkbox").each(function(){
                                    if (this.value == "All" && this.checked)
                                    {
                                        this.click();
                                    }
                                });
                            }
                        });
                       
$('#globalSearchScope').multiselect({'selectedText':'','noneSelectedText':'','header':false,'position':{'my':'right top','at':'right bottom'}}); $(this).setupCheckboxStyling($('#globalSearchScope').parent())
$("#globalSearchInput").bind("focus", function(event, ui){
                            $("#globalSearchInput").autocomplete("option", "source", "/zurmo/app/index.php/zurmo/default/globalSearchAutoComplete?" + $.param($("#globalSearchScope").serializeArray()));
                        });
                       
jQuery('#globalSearchInput').autocomplete({'select': function(event, ui) {if (ui.item.href.length > 0){window.location = ui.item.href;} return false;},'search': function(event, ui) { $(this).makeOrRemoveTogglableSpinner(true, "#app-search") },'open': function(event, ui) { $(this).makeOrRemoveTogglableSpinner(false, "#app-search") },'position':{'my':'right top','at':'right bottom'},'source':'/zurmo/app/index.php/zurmo/default/globalSearchAutoComplete'});
 $("#globalSearchInput").data( "autocomplete" )._renderItem = function( ul, item ) {
                            return $( "<li></li>" ).data( "item.autocomplete", item )
                                    .append( "<a><span class=" + item.iconClass + "></span><span>" + item.label + "</span></a>" )
                                    .appendTo( ul );
                        };
$('body').on('click', '#yt0', function(){jQuery.ajax({'beforeSend':function(){
                jQuery('#modalContainer').html('');
                $(this).makeLargeLoadingSpinner(true, '#modalContainer');
                window.scrollTo(0, 0);
                jQuery('#modalContainer').dialog({
                    'title' : 'Create Task',
                    'autoOpen' : true,
                    'modal' : true,
                    'position' : 'center top+25',
                    'dialogClass' : 'task-dialog',
                    'height' : 'auto',
                    'open': function( event, ui )  { jQuery('#modalContainer').parent().addClass('openingModal'); },
                    'close': function( event, ui ) { jQuery('#modalContainer').parent().removeClass('openingModal');
                                                     $('#modalContainer').dialog('destroy');
                                                     
                                                     }
                });
                return true;
            },'url':'/zurmo/app/index.php/tasks/default/modalCreate?modalId=modalContainer','cache':false,'success':function(html){jQuery("#modalContainer").html(html)}});return false;});

                    $(function() {
                        $('.truncated-title').ThreeDots({ max_rows:1 });
                    });
jQuery('#Account_owner_name').autocomplete({'select':function(event, ui){ jQuery("#Account_owner_id").val(ui.item["id"]).trigger("change");},'appendTo':$("#Account_owner_name").parent().parent(),'search': function(event, ui)
                                  {
                                       var context = $("#Account_owner_name").parent();
                                       $(".model-select-icon", context).fadeOut(100);
                                       $(this).makeOrRemoveTogglableSpinner(true, context);
                                  },'open': function(event, ui)
                                  {
                                       var context = $("#Account_owner_name").parent();
                                       $(".model-select-icon", context).fadeIn(250);
                                       $(this).makeOrRemoveTogglableSpinner(false, context);
                                  },'close': function(event, ui)
                                  {
                                       var context = $("#Account_owner_name").parent();
                                       $(".model-select-icon", context).fadeIn(250);
                                       $(this).makeOrRemoveTogglableSpinner(false, context);
                                  },'response': function(event, ui)
                                  {
                                       if (ui.content.length < 1)
                                       {
                                           var context = $("#Account_owner_name").parent();
                                           $(".model-select-icon", context).fadeIn(250);
                                           $(this).makeOrRemoveTogglableSpinner(false, context);
                                       }
                                  },'source':'/zurmo/app/index.php/users/default/autoComplete'});
$('body').off('click.selectLink', '#Account_owner_SelectLink'); $('body').on('click.selectLink', '#Account_owner_SelectLink', function(){jQuery.ajax({'beforeSend':function(){
                jQuery('#modalContainer-edit-form').html('');
                $(this).makeLargeLoadingSpinner(true, '#modalContainer-edit-form');
                window.scrollTo(0, 0);
                jQuery('#modalContainer-edit-form').dialog({
                    'title' : 'User Search',
                    'autoOpen' : true,
                    'modal' : true,
                    'position' : 'center top+25',
                    'dialogClass' : '',
                    'height' : 'auto',
                    'open': function( event, ui )  { jQuery('#modalContainer-edit-form').parent().addClass('openingModal'); },
                    'close': function( event, ui ) { jQuery('#modalContainer-edit-form').parent().removeClass('openingModal');
                                                     $('#modalContainer-edit-form').dialog('destroy');
                                                     
                                                     }
                });
                return true;
            },'url':'/zurmo/app/index.php/users/default/modalList?modalTransferInformation%5BsourceIdFieldId%5D=Account_owner_id&modalTransferInformation%5BsourceNameFieldId%5D=Account_owner_name&modalTransferInformation%5BmodalId%5D=modalContainer-edit-form&modalTransferInformation%5BsourceModelId%5D=-25','cache':false,'success':function(html){jQuery("#modalContainer-edit-form").html(html)}});return false;});
});
/*]]>*/
</script>
</body></html>